package com.study.designmodes.service.liabilityChain.v1;

/**
 * 洗发过滤器
 *
 * @author yangyanbin
 * @date 2023/03/21
 * @since 20230321
 */
public class WashHairFilter extends AbstractPrepareFilter {

    public WashHairFilter(AbstractPrepareFilter nextPrepareFilter) {
        super(nextPrepareFilter);
    }

    @Override
    public void prepare(PreparationList preparationList) {
        if (preparationList.isWashHair()) {
            System.out.println("洗头");
        }
    }
}
